package com.meta.act.app.domain.tenant;


//import com.metafnt.platform.exception.PlatformErrorCode;
//import com.meta.framework.act.tenant.entity.TenantBase;
//import com.meta.framework.act.tenant.entity.TenantExt;
//import com.meta.framework.act.tenant.reqTenantCreateCmd;
import com.meta.framework.exception.PlatformErrorCode;
import com.meta.act.app.tenant.entity.TenantExt;
import com.meta.act.app.tenant.req.TenantCreateCmd;
import lombok.Data;
import org.junit.Assert;

/*/**
* @Description:
* @Param:
* @return:
* @Author: simon.Zhang
* @Date: 2020/11/5
*/
@Data
//@Builder
public class TenantExtDo extends TenantExt {

	/*/**
	* @Description:
	* @Param: [cmd, labelId] 
	* @return: com.metafnt.tenant.domain.tenant.TenantDo 
	* @Author: simon.Zhang 
	* @Date: 2020/11/5 
	*/ 
	public static TenantExtDo of(TenantCreateCmd cmd, Long tenantId){

		Assert.assertNotNull(PlatformErrorCode.PARAM_NOT_NULL.getErrorMsg(), tenantId);

		TenantExtDo labelDo = cmd.transform(TenantExtDo.class);
		labelDo.setTenantId(tenantId);
		return labelDo;
	}
}
